package com.design.blog.controller;

import com.design.blog.model.R;
import com.design.blog.model.vo.UserParams;
import com.design.blog.service.impl.LoginServiceImpl;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author hxg
 * @version 1.0
 * @date 2022/3/14 13:27
 */
@RestController
public class RegisterController {
    @Resource
    private LoginServiceImpl loginService;

    @RequestMapping("/register")
    public R login(@RequestBody UserParams params) {
        return loginService.register(params);
    }
}
